export default defineEventHandler(async (event) => {
  return await event.context.prisma.memo.findMany({
    where: { authorId: event.context.user ? event.context.user.id : '' },
    include: { author: true }
  })
})
